<template>
  <div class="app-container">
    <div class="syl-group">
      <el-form ref="queryForm" :model="queryParams" :inline="true" @submit.native.prevent>
        <el-form-item label="企业名称:" prop="companyName">
          <el-input
            v-model="queryParams.companyName"
            placeholder="请输入企业名称"
            clearable
            size="small"
          />
        </el-form-item>
        <el-form-item label="电话号码:" prop="companyName">
          <el-input
            v-model="queryParams.companyName"
            placeholder="请输入手机号"
            clearable
            size="small"
          />
        </el-form-item>
        <el-form-item label="订单编号:">
          <el-input
            v-model="queryParams.companyName"
            placeholder="请输入订单编号"
            clearable
            size="small"
          />
        </el-form-item>
        <el-form-item label="选择时间:">
          <el-date-picker
            v-model="dateRange"
            type="daterange"
            size="small"
            range-separator="至"
            start-placeholder="开始日期"
            end-placeholder="结束日期"
            value-format="yyyy-MM-dd"
          />
        </el-form-item>

        <el-form-item>
          <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">查询</el-button>
          <el-button icon="el-icon-refresh" size="mini" class="ordinary" style="margin-right: 15px" @click="resetQuery">
            重置
          </el-button>
        </el-form-item>
      </el-form>
      <el-table
        v-loading="loading"
        :data="equWristbandList"
        :header-cell-style="{background:'#F3F9FF',color:'#333333',fontWeight: 600}"
      >
        <el-table-column label="订单编号" align="center" prop="order.orderNo" :show-overflow-tooltip="true" />
        <el-table-column label="企业名称" align="center" prop="order.createTime" :show-overflow-tooltip="true" />
        <el-table-column label="联系方式" align="center" prop="order.companyName" :show-overflow-tooltip="true" />
        <el-table-column label="申请时间" align="center" prop="order.contactPhone" />
        <el-table-column label="套餐数量" align="center" prop="order.packageNum" />
        <el-table-column label="售后金额" align="center" prop="order.packageNum" />
        <el-table-column label="状态" align="center" prop="order.packageNum" />
        <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
          <template slot-scope="scope">
            <router-link :to="{ path: '/dataset/sales',query:{id:1} }">
              <el-button
                size="mini"
                type="text"
              >查看
              </el-button>
            </router-link>
          </template>
        </el-table-column>
      </el-table>
      <pagination
        v-show="total>0"
        :total="total"
        :page.sync="queryParams.pageNum"
        :limit.sync="queryParams.pageSize"
        @pagination="getList"
      />
    </div>
  </div>
</template>
<script>
export default {
  name: 'Index',
  data() {
    return {
      // 加载动画
      loadingValue: false,
      // 活动时间
      dateRange: [],
      // 遮罩层
      loading: false,
      // 选中数组
      ids: [],
      // 非单个禁用
      single: true,
      // 非多个禁用
      multiple: true,
      // 总条数
      total: 2,
      // 售后列表格数据
      equWristbandList: [{}],
      // 状态
      options: [],
      // 最大上传数
      limitCount: 1,
      // 弹出层标题
      title: '',
      // 是否显示弹出层
      open: false,
      // 查询参数
      queryParams: {
        pageNum: 1,
        pageSize: 10,
        companyName: null,
        // 订单金额
        radio: 1
      },
      // 表单参数
      form: {
        contactName: null,
        coverPage: null,
        type: null,
        link: null,
        describe: null,
        release: null,
        startTime: null,
        endTime: null
      },
      // 表单校验
      rules: {},
      // 活动状态
      valueStatus: [
        { value: 1, label: '待审核' },
        { value: 2, label: '已通过' },
        { value: 3, label: '已拒绝' }
      ]
    }
  },
  methods: {
    /** 活动中心列表 **/
    getList() {

    },
    /** 发布 **/
    getGroup() {

    },
    /** 查询 **/
    handleQuery() {
      this.queryParams.pageNum = 1
      this.queryParams.radio = 1
      this.getList()
    },
    /** 重置 **/
    resetQuery() {
      this.resetForm('queryForm')
      this.dateRange = []
      this.handleQuery()
    }
  }

}
</script>
<style lang="scss" scoped>
.hide {
  /deep/ .el-upload--picture-card {
    display: none;
  }
}

.mb8 {
  margin: 10px 0;
}
</style>
